﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Spider.Models
{
    public class Movie
    {
        public Guid id { get; set; } = Guid.NewGuid();
        /// <summary>
        /// 影片名字
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string keywords { get; set; }
        /// <summary>
        /// 导演
        /// </summary>
        public string director { get; set; }
        /// <summary>
        /// 主要演员
        /// </summary>
        public string main_actor { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 影片类型
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// imdb评分
        /// </summary>
        public double imdb { get; set; }
        /// <summary>
        /// 豆瓣评分
        /// </summary>
        public double douban { get; set; }
        /// <summary>
        /// 总评分（有的影片没有豆瓣和imdb评分，但会有一个总分）
        /// </summary>
        public double score { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 上映日期（不标准，含地区）
        /// </summary>
        public string relase_time { get; set; }
        /// <summary>
        /// 年份
        /// </summary>
        public string year { get; set; }
        /// <summary>
        /// 页面地址
        /// </summary>
        public string page_url { get; set; }

        public DateTime created_at { get; set; } = DateTime.Now;

        public DateTime updated_at { get; set; } = DateTime.Now;

        public ICollection<Resource> resources { get; set; }
    }
}
